fontchooser: Fix builds without PangoFT2
authorMatthias Clasen <mclasen@redhat.com>
Thu, 24 Sep 2020 09:37:32 +0000 (17:37 +0800)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 26 Sep 2020 23:15:45 +0000 (19:15 -0400)
commit752270253f848a7f84fe6f564f2377c418674869
treea984913b424e73d8e0bc89f28f8a41bd11c418b9
parent92e551f8958b917885579a6b2cf887aa9546465a
fontchooser: Fix builds without PangoFT2

Currently, only if PangoFT2 is present and used it is supported
to retrieve the languages that are supported by a particular font.

If we don't have PangoFT2, remove the language filtering and the
sample text selection.

Based on earlier work by Chun-wei Fan, see
https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/2614
gtk/gtkfontchooserwidget.c
gtk/ui/gtkfontchooserwidget.ui